﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OneShoppingBLL;
using OneShoppingModel;
using OneShoppingDAL;
using OneShoppingUtility;

public partial class Backstage_index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            SystemUser user = user = (SystemUser)Session["user"];
            if (user == null)
            {
                Response.Redirect("login.html");
            }
            else
            {
                menuManager.InnerHtml = rolemenuViewBLL.GetInstance().GenerateTreeCode(user.RoleId);
            }
        }
    }
    public string getName()
    {
        string result = "未登录";
        try
        {
            SystemUser user = (SystemUser)Session["user"];
            result = user.LoginName;
        }
        catch
        {
            
        }
        return result;
    }
}